import requests

url = "https://stock.xueqiu.com/v5/stock/chart/minute.json?symbol=SZ399001&period=1d"
cookie_key ="xq_a_token=edbee4e5d1e92f98548629214a6e17fe06486a8f; xqat=edbee4e5d1e92f98548629214a6e17fe06486a8f; xq_r_token=1bd9fe2188768570022d1a3f9e12934cdaa1dc53; xq_id_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1aWQiOi0xLCJpc3MiOiJ1YyIsImV4cCI6MTcwODQ3NjMzNiwiY3RtIjoxNzA1OTI5MDI0OTY1LCJjaWQiOiJkOWQwbjRBWnVwIn0.PQw8_D2HRVRVemNa6-pifyyFKkRMdbKYjhzijG7Vt0dC0eZBswYhyHnd3JRdNDI_cRpVfcm4AvbYcZhetNMfKiwjJylySmfAbSkuRViNb_FTUTQjA9BVGYnq0YJ7xmRLs0uwiomnJGbS4xtsMh67kE13ntZvBYT8fi4v_LOFMk4d8FGOBJwZpgKkiESmWIcPbxmNj_epl3aJi9rp3lp93KXQMuBEM7vOvlVAdmErEbGxNUA55gDn_DxDFwbLV3fw5AMapY141UKp-QfnXz2an3WbYSvptL108qMHq7ekim04aGSjivTGVHZR3OF_RY6auDaIAxQ51ZOSVQXH0DA3Ug; cookiesu=491705929028821; u=491705929028821; device_id=979b1d4bbe2c38d82a19185d6f1753fa; Hm_lvt_1db88642e346389874251b5a1eded6e3=1705929049; Hm_lpvt_1db88642e346389874251b5a1eded6e3=1705929072"
my_header = {
    "Referer":"https://xueqiu.com/",
    "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
    "Cookie":cookie_key
}
res = requests.get(url,headers=my_header)
print(res.text)